home *** CD-ROM | disk | FTP | other *** search
- INCOMPLETE DRAFT 27 Oct 1994
-
- Specifications for GSview.
-
- Platform:
- - Three variants exist. Variants will run under
- - OS/2 2.0, 2.1, 2.11
- - MS-DOS or DRDOS with MS-Windows 3.0 or 3.1.
- - MS-DOS or DRDOS with MS-Windows 3.1 and Win32s, or Windows NT 3.5.
-
- Prerequisites:
- - Ghostscript 3.0
- - Later than Ghostscript 3.12 for Windows NT.
- - 386 or higher processor for OS/2 or Win32s. 286 otherwise.
- - 250k bytes disk space per GSview variant.
- - 6M bytes free disk space for GSview, Ghostscript and
- Ghostscript fonts.
-
- Overview:
- - PostScript is a page description language created by Adobe Systems
- and commonly used by laser printers.
- - Using PostScript comments, the Adobe Document Structuring
- Conventions (DSC) specify page structure and resource
- requirements for PostScript files.
- - Ghostscript is an interpreter written by Aladdin Enterprises
- for the PostScript language.
- - Ghostscript processes an entire PostScript file starting from
- the beginning, ignoring the DSC comments. By itself,
- Ghostscript displays all pages of a PostScript file.
- - GSview is a graphical interface for Ghostscript.
- - GSview processes DSC comments and skips over PostScript code.
- - When GSview and Ghostscript are used together on DSC conformant
- documents, selected pages can be viewed, printed or extracted.
-
- Input:
- - PostScript files that conform to DSC version 1, 2, or 3.
- - PostScript files that do not claim to conform to the DSC.
- - PostScript files must not change the page size by direct
- access to statusdict.
-
- Output:
- - A preview in a display window of selected pages of a
- PostScript file.
- - Printer output of selected pages of a PostScript file.
- - A PostScript file containing selected pages from the original
- file.
-
- General:
- - GSview reads PostScript files and scans the DSC comments.
- These comments are used to identify the start and end of the
- header, pages and the trailer. Using this information
- GSview sends individual pages to Ghostscript to be
- rendered.
- - Context sensitive help is provided. Implementation is through
- the system help facility.
- - Commands are given to GSview using pull down menus or a
- button bar.
- - Pages can be viewed in arbitrary order.
- - Display Resolution can be set to a numerical dpi value, or
- changed by a factor of 1.2 or 1/1.2 using the button bar.
- - The display window can be swapped with a zoomed image.
- - Display depth (number of colours) can be set in bits/pixel.
- - Page size is set automatically from the DSC comments and can
- be set manually.
- - Orientation is set automatically from the DSC comments and can
- be set manually.
- - A selected page can be displayed using Ghostscript.
- - Selected pages can be printed with Ghostscript.
- - Selected pages can be extracted to another file.
- - A displayed page can be copied to the system clipboard as a
- bitmap.
- - A bitmap in the system clipboard can be written to a BMP file.
- - A preview can be added to a PostScript EPS file in one of the
- following formats: Interchange, TIFF4, TIFF5 or (MS-Windows
- only) Windows Metafile.
- - The %%BoundingBox of an EPS file can be changed graphically.
- - The header line of a single page DSC file can be changed to
- EPS.
- - An EPS header can be written for a non-DSC file. The user
- must verify that the contents is compatible with EPS.
- - A DOS EPS file can be created from an EPS file.
- - PostScript and bitmap preview sections can be extracted from a
- DOS EPS file.
- - Text can be partially extracted from a PostScript file.
- - Limited text searches can be made of PostScript files.
-
- Distribution:
- - GSview is distributed in a ZIP file named gsview??.exe where
- ?? depends on the version number.
- - The ZIP file can by unpacked using the InfoZip unzip program
- version 5.
- - Sources to GSview are provided in the SRC subdirectory within
- the ZIP file.
- - The ZIP file is available using anonymous ftp to
- ftp.cs.wisc.edu:pub/ghost/rjl/gsview??.zip
-
-
- Compilation:
- - To compile PM GSview you need IBM NMAKE.EXE and EMX/GCC
- 0.8h with emxfix05. To create the PM GSview online help
- you need the IBM toolkit. The makefile is gvpm.mak.
- - To compile GSview for Windows you need Borland C++ 3.1 or
- 4.0. The makefile is gsview.mak.
- - To compile GSview for Windows 32 you need Borland C++ 4.0.
- The makefile is gsview.mak.
-
- Limitations:
- - PostScript programs that change the page size by directly
- accessing statusdict will prevent GSview from displaying in
- any orientation other than Portrait and will prevent the
- zoom feature from working correctly..
-
- DSC Comments:
- - GSview understands the following DSC comments
- %%PS-Adobe-1.0
- %%PS-Adobe-2.0
- %%PS-Adobe-2.1
- %%PS-Adobe-3.0
- %%PS-Adobe-x.x EPSF-x.x
- %%BoundingBox: int int int int
- %%Pages: int | (atend)
- %%Title: text
- %%CreationDate: text
- %%PageOrder: Ascend | Descend | Special | (atend)
- %%Orientation: Portrait | Landscape | (atend)
- %%PaperSize: text | (atend)
- %%DocumentMedia: text real real anything
- %%+ (only when applied to %%DocumentMedia)
- %%EndComments
- %%BeginPreview
- %%EndPreview
- %%BeginDefaults
- %%PageMedia
- %%EndDefaults
- %%BeginSetup
- %%EndSetup
- %%Page: text int
- %%Trailer
- %%BoundingBox: int int int int
- %%Pages: int
- %%PageOrder: Ascend | Descend | Special
- %%Orientation: Portrait | Landscape
- %%PaperSize: text
- %%DocumentMedia: text real real anything
- %%+ (only when applied to %%DocumentMedia)
- %%EOF
-
-
-